#ifndef MYSQLMODEL_H
#define MYSQLMODEL_H
#include <QSqlTableModel>

class MySqlModel : public QSqlTableModel
{
public:
    MySqlModel(QObject * parent = 0, QSqlDatabase db = QSqlDatabase());
    ~MySqlModel();
    QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const;
    void setQuery(const QSqlQuery &query);
};

#endif // MYSQLMODEL_H
